// MsnCoreViewerDlg.h : header file
//

#if !defined(AFX_MSNCOREVIEWERDLG_H__9ED39750_37CE_402D_BFF9_5B53F92140C1__INCLUDED_)
#define AFX_MSNCOREVIEWERDLG_H__9ED39750_37CE_402D_BFF9_5B53F92140C1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "LocalSocket.h"
#include "DragHWNDLocator.h"
#include "SelectionWnd.h"

/////////////////////////////////////////////////////////////////////////////
// CMsnCoreViewerDlg dialog

class CMsnCoreViewerDlg : public CDialog
{
// Construction
public:
	CMsnCoreViewerDlg(CWnd* pParent = NULL);	// standard constructor
	CLocalSocket * sock;
	CArray<HTREEITEM,HTREEITEM> m_itemarray;
	CArray<CRect,CRect> m_rectarray;
	CStringArray m_strarray;
	CDragHWNDLocator m_locator;
	HWND m_hSelectedWnd;
	CSelectionWnd m_selector;
// Dialog Data
	//{{AFX_DATA(CMsnCoreViewerDlg)
	enum { IDD = IDD_MSNCOREVIEWER_DIALOG };
	CTreeCtrl	m_elements;
	CListBox	m_windows;
	CString	m_properties;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMsnCoreViewerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMsnCoreViewerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRefreshwnd();
	virtual void OnOK();
	afx_msg void OnDestroy();
	afx_msg void OnSelchangedElements(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	afx_msg LRESULT OnInfo(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnWindowSelect(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnGetWindowProc(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
public:
	BOOL m_bMarkSelection;
	afx_msg void OnBnClickedMarkselection();
	afx_msg void OnBnClickedButton1();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MSNCOREVIEWERDLG_H__9ED39750_37CE_402D_BFF9_5B53F92140C1__INCLUDED_)
